/*
 * Copyright (C) 拾光分享网 
 * All rights reserved, Designed By www.hiai.top.
 * Email：goodsking@163.com.
 * Version：V1.0.2(20230701).
 */
package top.hiai.common.model;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

/**
 * @Author www.hiai.top
 * @Email goodsking@163.com
 * @Message 更多资源尽在www.hiai.top
 * @Introduction 类的介绍
 */
public class _MappingKit {

    public static void mapping(ActiveRecordPlugin arp) {
        /** 用户表 */
        arp.addMapping("bbs_user", "uid", User.class);
        /** 登录缓存表 */
        arp.addMapping("bbs_session", "sid", Session.class);
        /** 分类话题表 */
        arp.addMapping("bbs_comments", "tid", Comments.class);
        /** 文章表 */
        arp.addMapping("bbs_article", "aid", Article.class);
        /** 评论回复表 */
        arp.addMapping("bbs_reply", "rid", Reply.class);
        /** 粉丝好友表 */
        arp.addMapping("bbs_friend", "fid", Friend.class);
        /** 私信表  */
        arp.addMapping("bbs_message", "mid", Message.class);
        /** 新消息提醒表 */
        arp.addMapping("bbs_remind", "rid", Remind.class);
        /** 收藏表 */
        arp.addMapping("bbs_favorite", "id", Favorite.class);
        /**  用户登录历史表 */
        arp.addMapping("bbs_login_log", "id", LoginLog.class);
        /** 敏感词表 */
        arp.addMapping("bbs_sensitive_words", "id", Words.class);
        /** 角色表  */
        arp.addMapping("bbs_role", "id", Role.class);
        /**   权限表 */
        arp.addMapping("bbs_permission", "id", Permission.class);
        /** 消息表 */
        arp.addMapping("bbs_information", "nid", Information.class);
        /** 用户下载历史 */
        arp.addMapping("bbs_download", "xid", Download.class);
        /** 系统配置表 */
        arp.addMapping("bbs_system_data", "id", SystemData.class);
    }
}